/*
 * timer.h
 *
 *  Created on: 03-11-2012
 *      Author: Skeith
 */

#ifndef TIMER_H_
#define TIMER_H_

#include "../Startup/general.h"
#include "../Startup/lpc2xxx.h"
#include "../Startup/config.h"

#define CRYSTAL_FREQUENCY FOSC
#define PLL_FACTOR        PLL_MUL
#define VPBDIV_FACTOR     PBSD

void T1Start(tU32 time);
void T1Stop();
tU32 T1ElapsedTime();
tU32 T1ElapsedTimeMs();
tBool T1Stopped();


#endif /* TIMER_H_ */
